\hypertarget{classbo__sdl_1_1SDLResource}{
\section{bo\_\-sdl::SDLResource Class Reference}
\label{classbo__sdl_1_1SDLResource}\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}}
}


{\ttfamily \#include $<$SDLResource.h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classbo__sdl_1_1SDLResource_a2ec614adf2339c659efc49313bcb3ce8}{Initialize} (int xScreen, int yScreen, double scale)
\item 
void \hyperlink{classbo__sdl_1_1SDLResource_a41741547f1988507c2bcef83e62f9320}{BlitToScreen} (SDL\_\-Surface $\ast$, \hyperlink{classVector2}{Vector2})
\item 
void \hyperlink{classbo__sdl_1_1SDLResource_abab8aacb7e8cd25cff2ee57e079fbb20}{FlipScreen} ()
\item 
void \hyperlink{classbo__sdl_1_1SDLResource_a91c0ad36fa0119fdcbd803b5ae2c1b6c}{ClearBackBuffer} ()
\item 
\hypertarget{classbo__sdl_1_1SDLResource_a5638732880c9872c3e46e13136301f2a}{
void {\bfseries Display} ()}
\label{classbo__sdl_1_1SDLResource_a5638732880c9872c3e46e13136301f2a}

\item 
double \hyperlink{classbo__sdl_1_1SDLResource_a9bfc11a178bae5e9a1d244e6dc0fbe51}{GetScale} ()
\item 
void \hyperlink{classbo__sdl_1_1SDLResource_abcc9198f40ba84e050dbd137ec9b334c}{SetBackground} (const char $\ast$fileName)
\item 
void \hyperlink{classbo__sdl_1_1SDLResource_afee94e6dea2822ab159db584cd7a30c4}{BlitBackground} ()
\item 
\hypertarget{classbo__sdl_1_1SDLResource_af5a4b1ed404d90855e115c88b2393a40}{
void {\bfseries DrawHUDRect} ()}
\label{classbo__sdl_1_1SDLResource_af5a4b1ed404d90855e115c88b2393a40}

\item 
\hypertarget{classbo__sdl_1_1SDLResource_ac38259268883475b9790da757a4f8502}{
void {\bfseries DrawText} (const char $\ast$string)}
\label{classbo__sdl_1_1SDLResource_ac38259268883475b9790da757a4f8502}

\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classbo__sdl_1_1SDLResource}{SDLResource} $\ast$ \hyperlink{classbo__sdl_1_1SDLResource_a86836df6331fbcf4acdef2834b9b4ce4}{Instance} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
SDL \char`\"{}Wrapper\char`\"{}. Singleton class. Represents the actual screen 

\subsection{Member Function Documentation}
\hypertarget{classbo__sdl_1_1SDLResource_afee94e6dea2822ab159db584cd7a30c4}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!BlitBackground@{BlitBackground}}
\index{BlitBackground@{BlitBackground}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{BlitBackground}]{\setlength{\rightskip}{0pt plus 5cm}void bo\_\-sdl::SDLResource::BlitBackground (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classbo__sdl_1_1SDLResource_afee94e6dea2822ab159db584cd7a30c4}
Blits the background on the screen \hypertarget{classbo__sdl_1_1SDLResource_a41741547f1988507c2bcef83e62f9320}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!BlitToScreen@{BlitToScreen}}
\index{BlitToScreen@{BlitToScreen}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{BlitToScreen}]{\setlength{\rightskip}{0pt plus 5cm}void bo\_\-sdl::SDLResource::BlitToScreen (
\begin{DoxyParamCaption}
\item[{SDL\_\-Surface $\ast$}]{ img, }
\item[{{\bf Vector2}}]{ pos}
\end{DoxyParamCaption}
)}}
\label{classbo__sdl_1_1SDLResource_a41741547f1988507c2bcef83e62f9320}
Blit the used sprite (fSprite) on the screen \hypertarget{classbo__sdl_1_1SDLResource_a91c0ad36fa0119fdcbd803b5ae2c1b6c}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!ClearBackBuffer@{ClearBackBuffer}}
\index{ClearBackBuffer@{ClearBackBuffer}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{ClearBackBuffer}]{\setlength{\rightskip}{0pt plus 5cm}void bo\_\-sdl::SDLResource::ClearBackBuffer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classbo__sdl_1_1SDLResource_a91c0ad36fa0119fdcbd803b5ae2c1b6c}
Clears the back buffer, fills it with black \hypertarget{classbo__sdl_1_1SDLResource_abab8aacb7e8cd25cff2ee57e079fbb20}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!FlipScreen@{FlipScreen}}
\index{FlipScreen@{FlipScreen}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{FlipScreen}]{\setlength{\rightskip}{0pt plus 5cm}void bo\_\-sdl::SDLResource::FlipScreen (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classbo__sdl_1_1SDLResource_abab8aacb7e8cd25cff2ee57e079fbb20}
Flips the screen \hypertarget{classbo__sdl_1_1SDLResource_a9bfc11a178bae5e9a1d244e6dc0fbe51}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!GetScale@{GetScale}}
\index{GetScale@{GetScale}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{GetScale}]{\setlength{\rightskip}{0pt plus 5cm}double bo\_\-sdl::SDLResource::GetScale (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classbo__sdl_1_1SDLResource_a9bfc11a178bae5e9a1d244e6dc0fbe51}
Returns the scale, to be used in the visualize methods \hypertarget{classbo__sdl_1_1SDLResource_a2ec614adf2339c659efc49313bcb3ce8}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{Initialize}]{\setlength{\rightskip}{0pt plus 5cm}bool bo\_\-sdl::SDLResource::Initialize (
\begin{DoxyParamCaption}
\item[{int}]{ xScreen, }
\item[{int}]{ yScreen, }
\item[{double}]{ scale}
\end{DoxyParamCaption}
)}}
\label{classbo__sdl_1_1SDLResource_a2ec614adf2339c659efc49313bcb3ce8}
Initializes the SDL Layer using the supplied screen size \hypertarget{classbo__sdl_1_1SDLResource_a86836df6331fbcf4acdef2834b9b4ce4}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!Instance@{Instance}}
\index{Instance@{Instance}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{Instance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf SDLResource} $\ast$ bo\_\-sdl::SDLResource::Instance (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classbo__sdl_1_1SDLResource_a86836df6331fbcf4acdef2834b9b4ce4}
Returns the current instance of the screen. Self-\/initializes iff no screen found \hypertarget{classbo__sdl_1_1SDLResource_abcc9198f40ba84e050dbd137ec9b334c}{
\index{bo\_\-sdl::SDLResource@{bo\_\-sdl::SDLResource}!SetBackground@{SetBackground}}
\index{SetBackground@{SetBackground}!bo_sdl::SDLResource@{bo\_\-sdl::SDLResource}}
\subsubsection[{SetBackground}]{\setlength{\rightskip}{0pt plus 5cm}void bo\_\-sdl::SDLResource::SetBackground (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{ fileName}
\end{DoxyParamCaption}
)}}
\label{classbo__sdl_1_1SDLResource_abcc9198f40ba84e050dbd137ec9b334c}
Sets the background sprite to be used 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
SDLResource.h\item 
SDLResource.cpp\end{DoxyCompactItemize}
